<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		>

	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<ui:define name="title">#{loginBundle.title}</ui:define>
		<ui:define name="center">
			<rich:panel id="left" styleClass="left"/>
			<rich:panel id="content" styleClass="content">
				<a4j:form id="loginForm" prependId="false">
					<div align="center">
						<rich:panel id="loginPanel" styleClass="loginPanel">
							<f:facet name="header">
								<h:outputText value="#{loginBundle.title}"/>
							</f:facet>
							<h:panelGrid columns="2">
								<h:outputLabel for="j_username" value="#{loginBundle.user}"/>
								<h:inputText id="j_username" styleClass="sizeCopmonent" maxlength="100"/>
								<h:outputLabel for="j_password" value="#{loginBundle.password}"/>
								<h:inputSecret id="j_password" styleClass="sizeCopmonent" maxlength="100"/>
								<h:outputLabel for="_spring_security_remember_me" value="#{loginBundle.rememberMe}"/>
								<h:selectBooleanCheckbox id="_spring_security_remember_me"/>
								<h:commandButton type="submit" action="#{securityBean.doLogin}" value="#{loginBundle.login}"
												 onclick="hideLoginForm();"/>
								<h:commandButton type="reset" value="#{loginBundle.reset}"/>
								<f:facet name="footer">
									<a4j:commandLink action="register" value="#{loginBundle.register}"/>
								</f:facet>
							</h:panelGrid>
						</rich:panel>
					</div>
				</a4j:form>
			</rich:panel>
			<rich:panel id="right" styleClass="right"/>
		</ui:define>
	</ui:decorate>
</f:view>